<script lang="ts" setup>
import { ref } from 'vue'

const totalCount = ref(100)
const addtotalCount= () => totalCount.value++
const destotalCount= () => totalCount.value--
</script>

<template>
  <button @click="addtotalCount()">功德+1</button>
  <span>{{ totalCount }}</span>
  <button @click="destotalCount()">功德-1</button>
</template>

<style></style>
